package com.kapo.egroup.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;


/**
 * @Title UserRequest
 * @Description TODO
 * @Author 黄家宝
 * @Date 2022-10-17 01:45
 **/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserReq {

    /*
     * 昵称
     */
    private String nickname;

    /*
     * 密码
     */
    private String password;

    /*
     * 头像
     */
    private String avatar;

    /*
     * 邮箱
     */
    private String email;

    /*
     * 真实姓名
     */
    private String name;

    /*
     * 性别
     */
    private String sex;

    /*
     * 权限
     * 0 未认证
     * 1 学生
     * 2 教师
     * 3 管理员
     */
    private Integer permission;

    /*
     * toString函数
     */
    @Override
    public String toString() {
        return "User{" +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", avatar='" + avatar + '\'' +
                ", email='" + email + '\'' +
                ", sex=" + sex +
                ", permission=" + permission +
                '}';
    }


}
